package org.forwhat.framework.aop.creator;

import org.forwhat.framework.aop.Advice.Advice;

import java.util.ArrayList;
import java.util.List;

/**
 * @projectName: ForWhat
 * @package: org.forwhat.framework.aop.creator
 * @className: AdvisorProxyCreator
 * @author: LGJ
 * @description: TODO
 * @date: 2023/12/18 10:24
 * @version: 1.0
 */
public class AdvisorProxyCreator implements AdvisorRegistry{

    private List<Advice> adviceList = new ArrayList();
    @Override
    public void register(Advice advisor) {
        adviceList.add(advisor);
    }

    @Override
    public List<Advice> getAdvisor() {
        return adviceList;
    }

}
